package com.mas.session.state;

import jade.lang.acl.ACLMessage;

import com.mas.session.Session;
import com.thoughtworks.xstream.XStream;

public class DoneExitSenderState extends ExitState {


	public DoneExitSenderState(Session session) {
		super(session);
	}

	public void proposalAccepted(ACLMessage message) {
		ACLMessage reply = message.createReply();

		XStream xstream = new XStream();

		reply.setContent(xstream.toXML("Done"));
		reply.setPerformative(ACLMessage.INFORM);
		this.session.getAgent().send(reply);
		
		exit(message,"Done");
	}

}